<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org/">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css"
          integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap-theme.min.css"
          integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous">
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js"
            integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd"
            crossorigin="anonymous"></script>

</head>
<body>
<div class="container-fluid">
    <div class="row">

        <div class="col-xs-4 col-md-offset-4">
            <form class="form-horizontal" style="margin-top: 50px" action="addEmp" method="post">
                <div class="form-group">
                    <label for="ename" class="col-sm-2 control-label">姓名：</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="ename" placeholder="请输入姓名" name="ename" value="蔡徐坤">
                    </div>
                </div>
                <div class="form-group">
                    <label for="job" class="col-sm-2 control-label">工作：</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="job" placeholder="输入工作名称" name="job" value="Java">
                    </div>
                </div>
                <div class="form-group">
                    <label for="sal" class="col-sm-2 control-label">工资：</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="sal" placeholder="输入工资" name="sal" value="1999.9">
                    </div>
                </div>

                <div class="form-group">
                    <label for="mrg" class="col-sm-2 control-label">领导编号：</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="mrg" placeholder="输入领导编号" name="mrg" value="100">
                    </div>
                </div>

                <div class="form-group">
                    <label for="hireDate" class="col-sm-2 control-label">入职时间：</label>
                    <div class="col-sm-10">
                        <input type="date" class="form-control" id="hireDate" name="hireDate" value="2022-02-02">
                    </div>
                </div>

                <div class="form-group">
                    <label for="comm" class="col-sm-2 control-label">奖金</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="comm" placeholder="输入奖金提成" name="comm" value="400">
                    </div>
                </div>
                <div class="form-group">
                    <label for="sal" class="col-sm-2 control-label">部门</label>
                    <div class="col-sm-10">
                        <label>
                            <select name="deptNo" >
                                <option th:each="dept:${#session.getAttribute('deptList')}" th:value="${dept.deptNo}" th:text="${dept.dname}"></option>
                            </select>
                        </label>
                    </div>
                </div>


                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-default">新增</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
</html>